<#include "../common/layout.ftl"/>
<@layout>
<div class="well">
		<form method="post" action="/order/cancelNotAcceptApprovalList" class="form-inline">
			<span class="label label-success">未接取消订单 - 已审核</span>
			<input type="text" class="input-medium" style="height: 26" placeholder="订单号" name="id"/>
			<button type="submit" class="btn btn-primary"><i class="icon-search icon-white"></i>查询</button>
			<button type="button" class="btn btn-info" onclick="javascript:history.back();">返回</button>
	    	<a class="btn btn-success" href="/order/excel10"><i class="icon-download-alt icon-white"></i> 导 出 Excel</a>
		</form>
</div>
<div class="well">

	<table class="table table-bordered table-striped">
		<thead>
		  <tr>
			<th>单号</th>
			<th>客户姓名</th>
			<th>客户手机</th>
			<th>客户性别</th>
			<th>目标方向</th>
			<th>地号</th>
			<th>起点</th>
			<th>终点</th>
			<th>里程</th>
			<th>总金额</th>
			<th>支付方式</th>
			<th>订单类型</th>
			<th>发布时间</th>
			<th>投诉</th>
			<th>取消原因</th>
			<th>审核意见</th>
			<th>备注</th>
		  </tr>
		</thead>
		<tbody>
		<#list page.list as order>
		  <tr>
		  <td>${order.id}</td>
			<#if order.member_id ??>
				<td>
				  ${order.real_name!""}
				</td>
				<td>
				  ${order.cell_phone!""}
				</td>
				<td>
				  <#if order.sex??>
					  <#if order.sex == 0>
					  	<span class="label label-info">男</span>
					  <#elseif order.sex == 1>
					  	<span class="label label-warning">女</span>
					  <#else>
					  	<span class="label label-inverse">未知</span>
					  </#if>
				  </#if>
				</td>
		  	<#else>
				<td>
				  ${order.real_name2!""}
				</td>
				<td>
				  ${order.cell_phone2!""}
				</td>
				<td>
				  <#if order.sex2??>
					  <#if order.sex2 == 0>
					  	<span class="label label-info">男</span>
					  <#elseif order.sex2 == 1>
					  	<span class="label label-warning">女</span>
					  <#else>
					  	<span class="label label-inverse">未知</span>
					  </#if>
				  </#if>
				</td>
		  	</#if>
			<td>
			 ${order.userarea!""}
			</td>
			<td>
			 ${order.area_num!" "}
			</td>
			<td>
			 ${order.startpoint!""}
			</td>
			<td>
			 ${order.endpoint!""}
			</td>
			<td>
			 ${order.kilometre!""}
			</td>
			<td>
			￥${order.totalmoney!""}
			</td>
			<td>
			<#if order.pay_type??>
			 <#if order.pay_type == 0>
			  	<span class="label label-info">现金</span>
			  <#elseif order.pay_type == 1>
			  	<span class="label label-warning">企业支付</span>
			  <#elseif order.pay_type == 2>
			  	<span class="label label-success">VIP支付</span>
			  <#elseif order.pay_type == 3>
			  	<span class="label label-success">免费客户</span>
			  <#else>
			  	<span class="label label-inverse">其他</span>
			  </#if>
			  </#if>
			</td>
			<td>
			   <#if order.from_source ??>
			    <#if order.from_source == "WECHAT">
		  	 	公众号
		  	 	<#elseif order.from_source == "APP">
		  	 	自建
		  	 	<#elseif order.from_source == "ADMIN">
		  	 	强制派单
		  	 	<#elseif order.from_source == "CLIENT">
		  	 	客户端
		  	 	<#elseif order.from_source == "GRAB">
		  	 	员工抢单
		  	 	</#if>
		  	   </#if>
			</td>
			<td>
			 ${order.publish_time?string("MM/dd HH:mm")}
			</td>
			<td>
			 ${order.complaint_content!" "}
			</td>
			<td>
			 ${order.cancel!" "}
			</td>
			<td >
				${order.cancel_approval_opinion!" "}
			</td>
			<td>
			 ${order.remark!" "}
			</td>
		  </tr>
		</#list>
		</tbody>
	</table>
	<#include "../common/paginate.ftl" />
	<@paginate currentPage=page.pageNumber totalPage=page.totalPage actionUrl="/order/cancelNotAcceptApprovalList/" />
</div>

</@layout>